package com.zmsoft.persistent.sfg.Sfg662060GameInteract;

import java.util.List;

import javax.annotation.Resource;

import org.cnsoft.framework.db.page.PageModel;
import org.cnsoft.framework.db.support.ext.MyDataBaseOperateSupport2;
import org.springframework.stereotype.Repository;

/**
 * 游戏互动配置信息数据库操作实体
 */
@Repository("Sfg662060GameInteractDao")
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class Sfg662060GameInteractDao extends MyDataBaseOperateSupport2<Sfg662060GameInteractDBO> {
	@Resource
	private Sfg662060GameInteractMapper mapperSfg662060GameInteract;

	public Sfg662060GameInteractMapper getMapper() {
		return mapperSfg662060GameInteract;
	}

	// 自定义查询
	public List<Sfg662060GameInteractDBO> doSelectDataCustomParams(Sfg662060GameInteractDBO formParamBean) {
		return getMapper().doSelectDataCustomParams(formParamBean);
	}

	// 自定义分页查询
	public PageModel<Sfg662060GameInteractDBO> doSelectPageCustomParams(PageModel<Sfg662060GameInteractDBO> formParamPageModel) {
		// 补充删除标记
		// ((ADataBaseDefaultSupportBean)
		// formParamPageModel.getFormParamBean()).prepareDeleteFlag(1);
		// SAAS模式
		// MySAASBusinesslogicPlugin.sqlHandle((ADataBaseDefaultSupportBean)
		// formParamPageModel.getFormParamBean());
		// 默认排序
		// formParamPageModel.setOrderbyIdDESC();
		// 查询数据
		formParamPageModel.setPageListData(getMapper().doSelectPageCustomParams(formParamPageModel));

		return formParamPageModel;
	}
}
